body {
    /* background: #f2f2f2; */
    background: #282c34;
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    border-radius: 2px;
    box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: #34495e;
    color: #fff;
}

.cradle {
    position: absolute;
    width: 200px;
    height: 40px;
    top: 140px;
    left: 100px;
    padding-top: 100px;

    &:before {
        content: '';
        display: block;
        position: absolute;
        width: 200px;
        height: 6px;
        top: 0;
        left: 0;
        border-radius: 3px;
        background: #bdc3c7;
    }

    .ball {
        position: relative;
        float: left;
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 50%;
        transform-origin: 50% -100px;

        &:before {
            content: '';
            display: block;
            position: absolute;
            height: 100px;
            width: 1px;
            top: -100px;
            left: 19px;
            background: #bdc3c7;
        }
    }

    .ball-1 {
        animation: ball-1 0.8s ease-out infinite alternate;
    }
    .ball-5 {
        animation: ball-5 0.8s ease-out 0.8s infinite alternate;
    }
}

@keyframes ball-1 {
    0%,
    50% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(30deg);
    }
}
@keyframes ball-5 {
    0%,
    50% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(-30deg);
    }
}
